gdkcairo: Bail if surface is in error
authorBenjamin Otte <otte@redhat.com>
Fri, 20 Feb 2015 23:03:49 +0000 (00:03 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 25 Feb 2015 00:55:28 +0000 (01:55 +0100)
commit40f2af665d59f2732ac587734b4958682d5f7c7d
tree592f1e3801906df01f8db9c0cac71329fc64fcbf
parent0ab48fcc4227ab112835f8fc1b922cfb21a7927f
gdkcairo: Bail if surface is in error

Don't try to paint onto an error surface. This happens for example when
gdk_cairo_set_source_pixbuf() is called with a pixbuf that is too big
for Cairo to handle.

Spotted by Christian Boxdörfer
gdk/gdkcairo.c
testsuite/gdk/Makefile.am
testsuite/gdk/cairo.c [new file with mode: 0644]